package com.huangliusong.dubbo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Scanner;

/**
 * @author huangliusong
 * @since 2019/1/1
 * {@link }
 */
public class ConsumerClient1 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context=new ClassPathXmlApplicationContext("applicationContext-consumer.xml");
        context.start();


        for (int i=0;i<10;i++){

            ServiceAPI serviceAPI=(ServiceAPI)context.getBean("consumer");
            System.out.println(serviceAPI.sendMessage("黄柳淞"+i));

        }
    }
}
